package com.wedo.mall.adapter;

import android.content.Context;
import android.widget.TextView;

import com.e.library.adapter.Adapter;
import com.wedo.mall.R;

import java.util.List;

/**
 * Created by lxy on 2017/6/20.
 */

public class HistoryAdapter extends Adapter<String> {

    public HistoryAdapter(Context context, List<String> datas) {
        super(context, datas);
    }

    @Override
    protected int layout() {
        return R.layout.item_history;
    }

    @Override
    protected void bind(EHolder holder, String s, int position) {
        TextView tv_name = holder.find(R.id.tv_name);
        tv_name.setText(s);
    }
}
